package com.wyh.mapper.g3mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyh.domain.po.g3po.BuildInfo;
import com.wyh.domain.po.g3po.G3Contract;
import com.wyh.domain.po.g3po.ResourceInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/05/28/16:45
 **/
@Mapper
public interface G3ResourceMapper extends BaseMapper<ResourceInfo> {
    //根据合同的资源id拿到资源
    ResourceInfo getResourceInfoByContractResourceId(@Param("c") G3Contract g3Contract);
    //根据资源id获取楼盘、楼栋、楼层信息
    BuildInfo getBuildInfoByResourceId(@Param("r")ResourceInfo resourceInfo);
}
